{% extends "base.html" %}
{% block header %}


{% endblock %}
{% block menu %}
    {% include "flow-menu.html" %}
{% endblock %}

{% block content %}
<!--
<script type="text/javascript" src="/static/ckeditor/ckeditor.js"></script>
<textarea cols="80" id="text" name="text" rows="10">
 这里是默认值，修改文本的内容是放在这里。html需要进行HTMLEncode编码  
</textarea> 
<script type="text/javascript"> 
var editor = CKEDITOR.replace('text'); 
</script>
-->
<div id="mon-tit">
        <div id="mon-tit">
            <div class="left">运维工作流 >> 操作单</div>
            
            <div class="right"><a href='/flow/addtask/'>发起操作单</a></div>
        </div>
</div>      
        <div class="clr"></div>
        <hr>
        <h3  class='tit'>操作单总览
            <span>
                <a href='/flow/' style='color:black' >待处理操作单</a> | 
                <a href='/flow/mylist'>我的操作单</a>|
                <a href='/flow/searcht/?action=csv'  >上周数据</a> | 
                <a href='/flow/list'>列出所有</a>
            </span>
        </h3>
        
        <div  class="flow-dis right-col">
            <div class="title">
                <span class="choose">选择</span>
                <span class="tname">上线单名称</span>
                <span class="pid">对应模块名称</span>
                <span class="auth_uid">发单人</span>
                <span class="op_uid">操作人</span>
                <span class="op">状态</span>
                <span class="op">操作</span>
                <span class="hid">发起时间</span>
            </div>
          {% for l in todoList %}
            <div class="{% cycle 'ji' 'ou' %}">
                <span class="choose"><input type="checkbox" />{{ l.id}}</span>
                <span class="tname">{{ l.tname }}</span>
                <span class="pid">{{ l.pid }}</span>
                <span class="auth_uid">{{ l.send_uid }}</span>
                <span class="op_uid">{{ l.op_uid }}</span>
                <span class="op">
                    <a href="/flow/flowaction/{{ l.id }}/{{l.status}}/">{{ l.oprate}}</a>
                </span>
                <span class="hid">{{ l.timestamp|date:"Y-m-d H:i:s" }}</span>
            </div>
        {% endfor %}
        </div>

{% endblock %}

